/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-10
 * Time: 22:42
 */
class Date {
    public int year;
    public int month;
    public int day;


    public Date( int month) {
        this.month = month;
    }

    public Date(int year, int day) {
        this(11);
        this.year = year;
        this.day = day;
    }

    public Date() {
        this(2023,11);
    }
    public void printDate() {
        System.out.println(this.year + "/" + this.month + "/" + this.day);
    }
    
}
public class Test {
    public static void main(String[] args) {
        Date date1 = new Date();
        date1.printDate();
/*class Date {
    public int year;
    public int month;
    public int day;
    public void printDate() {
        System.out.println(this.year + "/" + this.month + "/" + this.day);
    }
}
public class Test {
    public static void main(String[] args) {
        Date date1 = new Date();
        date1.printDate();*/
/*class Dog {
    //成员变量 属性  字段
    String name;
    int age;
    String colour;
    //成员方法
    public void eat() {
        System.out.println(name+"正在吃............");
    }
    public void barks() {
        System.out.println(name+"正在汪汪汪.........");
    }
    public void wag() {
        System.out.println(name+"正在摇尾巴.........");
    }
}*/
/*class Date {
    public int year;
    public int month;
    public int day;

   *//* public void setDay(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }*//*

    public void printDate() {
        System.out.println(this.year + "/" + this.month + "/" + this.day);
    }
}
public class Test {
    public static void main(String[] args) {
        Date date1 = new Date();
        date1.printDate();*/
        /*Date date2 = new Date();
        Date date3 = new Date();*/
//        date1.setDay(2021,10,10);
//        date2.setDay(2022,11,11);
//        date3.setDay(2023,12,12);
       /* date2.printDate();
        date3.printDate();*/
    }
    /*String name;
    int age;
    String colour;
    //成员方法
    public void eat() {
        System.out.println(name+"正在吃............");
    }
    public void barks() {
        System.out.println(name+"正在汪汪汪.........");
    }
    public void wag() {
        System.out.println(name+"正在摇尾巴.........");
    }*/

    public static void main2(String[] args) {
       /* Test.name;
        Test.wag();
        Test test = new Test();
        test.name = "小黄";
        test.wag();;*/
    }
    public static void main1(String[] args) {
        //Test test = new Test();
        /*Dog dog = new Dog();
        dog.name = "旺财";
        dog.age = 2;
        dog.colour = "黑色";
        dog.wag();
        dog.eat();
        dog.barks();*/
    }
}
